<?php
/**
 * Default RSS Template
 *
 * @package OWL
 * @subpackage Default Template
 * @author KeiMOon
 * @since 1.0
 */

class Template_RSS extends Owl_Master_Template {
    var $layout = false;

    protected function render_content() {
        header("content-type: text/xml");
        $channel = $_GET["var"];
        switch ($channel) {
            case 'notes' :
                $owl_note = new Owl_Note();
                $owl_note->to_rss();
                break;
            case 'pages' :
                $owl_page = new Owl_Page();
                $owl_page->to_rss();
                break;
            case 'documents' :
                $owl_course = new Owl_Course();
                $owl_course->to_rss();
                break;
            default :
                $owl_note = new Owl_Note();
                $owl_note->to_rss();
                break;
        }
    }
}

